﻿using NForum.Core.Abstractions;
using System;
using System.ComponentModel.DataAnnotations;
using System.Xml.Linq;

namespace NForum.Core {

	public class Board : INamedElement, ISortableElement, ICustomPropertyHolder {
		public Int32 Id { get; set; }
		[Required]
		[StringLength(Constants.FieldLengths.BoardName)]
		public String Name { get; set; }
		[StringLength(Int32.MaxValue)]
		public String Description { get; set; }
		[Required]
		public Int32 SortOrder { get; set; }

		[StringLength(Int32.MaxValue)]
		public String CustomProperties { get; set; }
		public XDocument CustomData { get; set; }
	}
}